home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 18 / AMIGAplus Sonderheft 18 (1999)(ICP)(DE)[!].iso / PD / Anwendungen / FS1541-13 / packet.h < prev    next >
C/C++ Source or Header  |  1999-01-03  |  1KB  |  51 lines

  1.  
  2. /*
  3.  * FS1541 - packet processor (header)
  4.  *
  5.  * Copyright (C) 1996 - 1998 Michael Krause
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 2 of the License, or
  10.  * (at your option) any later version.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. void DoPackets(void);
  23.  
  24. extern int inhibited;
  25.  
  26. /* This structure is used both as the one stored in fh_Arg1 of our
  27.    filehandles as well as for passing around data about files internally. */
  28. struct FHArg1 {
  29.     BPTR lock;
  30.     ULONG len, len0;
  31.     ULONG pos;
  32.     UBYTE t,s,p;
  33.     UBYTE t0,s0;
  34.     UBYTE number;
  35.     UWORD numblocks;
  36. };
  37.  
  38. #define FLKEY_SPECIALMASK 0xf0000
  39. #define FLKEY_SPECIALSHIFT 16
  40.  
  41. #define FLKEY_DOLLAR 0x10000
  42. #define VIRTUAL_FILE_DOLLAR "$"
  43. #define FLKEY_D64 0x20000
  44. #define VIRTUAL_FILE_D64 "$d64"
  45. #define FLKEY_OPT 0x30000
  46. #define VIRTUAL_FILE_OPT "$opt"
  47. #define FLKEY_DISKINFO 0x40000
  48. #define VIRTUAL_FILE_DISKINFO "Disk.info"
  49.  
  50. #define NUM_VIRTUAL 255
  51.